//
//  HYPhotoVideoViewModel.h
//  XPlayer
//
//  Created by liguoqing on 2023/8/5.
//

#import <BaseWithRAC/BaseViewModel.h>
#import "HYVideoViewModel.h"
#import "HYVideoPlayerConfig.h"

typedef void(^CompleteBlock)(id _Nonnull videoModel);

NS_ASSUME_NONNULL_BEGIN

@interface HYPhotoVideoViewModel : BaseViewModel
// 文件标识
@property (nonatomic, strong) NSString *folderIdentification;
// 文件是否是私密
@property (nonatomic, assign) BOOL isSuperPrivate;
// 选择个数
@property (nonatomic, assign) NSInteger selectCount;
// 最大选择数量
@property (nonatomic, assign) NSInteger maxSelectCount;

@property (nonatomic, strong) RACSubject *saveSuccessSubject;

@property (nonatomic, strong) RACSubject *syncSubject;

// 获取相册视频资源
- (void)fetchPhotoVideoAuthAndSources;

- (NSInteger)numberOfRowsInSection;

- (id)cellForRowAtIndexPath:(NSIndexPath *)indexPath;

- (BOOL)isCanPlay:(NSIndexPath *)indexPath;

- (HYVideoViewModel *)didSelectRowAtIndexPath:(NSIndexPath *)indexPath;

// 保存选中的视频
- (void)saveSelectPhotoVideo;

// 取消选中的视频
- (void)cancelSelectPhotoVideo;

@end

NS_ASSUME_NONNULL_END
